package chapter92;

public class Demo {

    int num=10;

    public int changeV(int number){
        System.out.println("形参改变前的值为"+number);
        number+=5;
        System.out.println("形参改变后的值为"+number);
        return number;
    }

    public static void main(String[] args) {
        Demo d=new Demo();
        d.num=d.changeV(d.num);

        System.out.println("成员变量num的值为"+d.num);

    }


}
